package com.run.merchant.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.run.merchant.mapper.RunUnsealInfoMapper;
import com.run.merchant.domain.RunUnsealInfo;
import com.run.merchant.service.IRunUnsealInfoService;

/**
 * 代取员申请解封信息Service业务层处理
 * 
 * @author run
 * @date 2025-05-14
 */
@Service
public class RunUnsealInfoServiceImpl implements IRunUnsealInfoService 
{
    @Autowired
    private RunUnsealInfoMapper runUnsealInfoMapper;

    /**
     * 查询代取员申请解封信息
     * 
     * @param unsealId 代取员申请解封信息主键
     * @return 代取员申请解封信息
     */
    @Override
    public RunUnsealInfo selectRunUnsealInfoByUnsealId(Long unsealId)
    {
        return runUnsealInfoMapper.selectRunUnsealInfoByUnsealId(unsealId);
    }

    /**
     * 查询代取员申请解封信息列表
     * 
     * @param runUnsealInfo 代取员申请解封信息
     * @return 代取员申请解封信息
     */
    @Override
    public List<RunUnsealInfo> selectRunUnsealInfoList(RunUnsealInfo runUnsealInfo)
    {
        return runUnsealInfoMapper.selectRunUnsealInfoList(runUnsealInfo);
    }

    /**
     * 新增代取员申请解封信息
     * 
     * @param runUnsealInfo 代取员申请解封信息
     * @return 结果
     */
    @Override
    public int insertRunUnsealInfo(RunUnsealInfo runUnsealInfo)
    {
        return runUnsealInfoMapper.insertRunUnsealInfo(runUnsealInfo);
    }

    /**
     * 修改代取员申请解封信息
     * 
     * @param runUnsealInfo 代取员申请解封信息
     * @return 结果
     */
    @Override
    public int updateRunUnsealInfo(RunUnsealInfo runUnsealInfo)
    {
        return runUnsealInfoMapper.updateRunUnsealInfo(runUnsealInfo);
    }

    /**
     * 批量删除代取员申请解封信息
     * 
     * @param unsealIds 需要删除的代取员申请解封信息主键
     * @return 结果
     */
    @Override
    public int deleteRunUnsealInfoByUnsealIds(Long[] unsealIds)
    {
        return runUnsealInfoMapper.deleteRunUnsealInfoByUnsealIds(unsealIds);
    }

    /**
     * 删除代取员申请解封信息信息
     * 
     * @param unsealId 代取员申请解封信息主键
     * @return 结果
     */
    @Override
    public int deleteRunUnsealInfoByUnsealId(Long unsealId)
    {
        return runUnsealInfoMapper.deleteRunUnsealInfoByUnsealId(unsealId);
    }
}
